package cn.shop.utils.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author : 李一涵
 * @date : Created in 2021-11-10 15:13
 * @description : 来源
 */
public enum Source {

    /** 网页端 */
    WEB(0, "网页"),
    /** 游戏端 */
    GAME(1, "游戏端");

    @EnumValue
    private final int code;
    @JsonValue
    private final String description;

    Source(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int code() {
        return code;
    }

    public String description() {
        return description;
    }

}
